/**
 * 
 */
package com.zc.spring.serviceimpl;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.zc.spring.service.StaticProxyExampleService;
import com.zc.spring.util.Formate;

/**
 * @author ZhangCheng
 * @time 2019年11月1日
 */
public class StaticProxyExampleServiceImplProxy implements StaticProxyExampleService{
	//静态代理使得我们将代理对象写死了，就不灵活
	private StaticProxyExampleService sPES;

	public StaticProxyExampleServiceImplProxy(StaticProxyExampleService sPES) {
		this.sPES = sPES;
	}

	@Override
	public void addUser(){
		try {
			System.out.println("here is the begin of the addUser... "+ Formate.getNowTime());
			this.sPES.addUser();
			System.out.println("here is the end of the addUser... " + Formate.getNowTime());
		} catch (Exception e) {
			System.out.println("here is the exception of the addUser... the exception is " + e.getLocalizedMessage() + " " + Formate.getNowTime());
		}
		
	}

	@Override
	public void showTips(String tips) {
		// TODO Auto-generated method stub
		
	}
	
	
}
